<%@page import="java.net.URLEncoder"%>
<%@page import="java.net.URLDecoder"%>
<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'login.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<h1>登录</h1>
	<hr>
	<%
		String msg = "";
		msg = URLDecoder.decode(msg, "utf-8");
		request.setCharacterEncoding("utf-8");
		if (request.getParameter("msg") != null) {
			msg = request.getParameter("msg");
		} else {
			msg = "";
		}
	%>
	<form action="index.jsp" name="loginform" method="get">
		<table>
			<tr>
				<td colspan="2" align="center"><label style="color: red;"><%=msg%></label></td>
			</tr>
			<tr>
				<th>姓名</th>
				<th><input type="text" name="username" /></th>
			</tr>
			<tr>
				<td>年龄</td>
				<td><input type="password" name="password" /></td>
			</tr>
			<tr>
				<td colspan="2" align="center"><input type="submit" value="登录" /></td>
			</tr>


		</table>
	</form>
	<script type="text/javascript">
	
	</script>
</body>
</html>
